package com.huiyuan.enums;

import lombok.Getter;

/**
 * @author huiyuan080
 */
@Getter
public enum ResultEnums {
    /**
     * 除200外，其余都是失败，每个返回码代表具体失败场景
     */
    SUCCESS(200, "操作成功"),
    ERROR(40000, "操作失败！"),
    INSUFFICIENT_BALANCE(40001, "账户余额不足"),
    RETURN_VEHICLE(40002, "车辆未归还, 请先归还车辆");

    private Integer code;
    private String msg;

    ResultEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
